package com.cheer.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("资源文件")
public class ResourceParam {

    @NotNull(message="文件不能为空")
    @ApiModelProperty("文件")
    private MultipartFile file;

    @NotNull(message="文件类型不能为空")
    @ApiModelProperty("文件类型")
    private String type;


}
